﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TKToXML.Models;
using NHibernate.Mapping.ByCode.Conformist;

namespace TKToXML.Persistence.ClassMaps
{
    public class VanDonMap : ClassMapping<VanDon>
    {        
        public VanDonMap()
        {
            Table("EDVANDON");
            Id(x => x.Id, map => map.Column("So_TC"));
            Property(x => x.CangDich, map => map.Column("Ten_CA_GH"));
            Property(x => x.CangDoHang, map => map.Column("Ten_CA_DH"));
            Property(x => x.CangXepHang, map => map.Column("Ten_CA_XH"));
            Property(x => x.NgayKhoiHanh, map => map.Column("Ngay_KH"));
            Property(x => x.NgayPhuongTienDen, map => map.Column("Ngay_DE"));
            //Map(x => x.NgayPhuongTienDi).Column("Ngay_KH");
            Property(x => x.NgayVanDon, map => map.Column("Ngay_VD"));
            Property(x => x.QuocTichPTVT, map => map.Column("QuocTich_PTVT"));
            Property(x => x.SoVanDon, map => map.Column("So_VD"));
            Property(x => x.TenPhuongTienVanTai, map => map.Column("Ten_PTVT"));
            Property(x => x.TongSoKien, map => map.Column("Tong_SK"));            
        }
    }
}
